package com.diy.sigmund.diyuser.entity.vo;


import com.fasterxml.jackson.annotation.JsonAlias;

/**
 * 对应OAuth2出参 http://localhost:8001/oauth/token?grant_type=password&username=18727613663&password=123456&scope=all
 *
 * @author ylm-sigmund
 * @since 2021/8/24 23:02
 */
public class CustomOAuth2AccessToken {

    // 该注解在反序列化的时候可以让Bean的属性接收多个json字段的名称
    @JsonAlias("access_token")
    private String accessToken;
    @JsonAlias("token_type")
    private String tokenType;
    @JsonAlias("refresh_token")
    private String refreshToken;
    @JsonAlias("expires_in")
    private Integer expiresIn;
    private String scope;
    @JsonAlias("jwt_ext")
    private Object jwtExt;
    private String jti;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Object getJwtExt() {
        return jwtExt;
    }

    public void setJwtExt(Object jwtExt) {
        this.jwtExt = jwtExt;
    }

    public String getJti() {
        return jti;
    }

    public void setJti(String jti) {
        this.jti = jti;
    }
}
